package com.mybatis.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wenbo
 * @since 2020-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "系统用户主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "工号(用户名)")
    private String code;

    @ApiModelProperty(value = "用户名称")
    private String name;

    @ApiModelProperty(value = "登录密码")
    private String pwd;

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "身份证号")
    private String idnum;

    @ApiModelProperty(value = "01 男 02女(字典)")
    private String sex;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "邮箱地址")
    private String mailbox;

    @ApiModelProperty(value = "头像地址")
    private String iconUrl;

    @ApiModelProperty(value = "用户状态 01正常 02停用(字典)")
    private String state;

    @ApiModelProperty(value = "盐值")
    private String salt;

    @ApiModelProperty(value = "最后一次登录时间")
    private Date loginLastTime;

    @ApiModelProperty(value = "省(字典)")
    private String addrProv;

    @ApiModelProperty(value = "市区(字典)")
    private String addrCity;

    @ApiModelProperty(value = "县(字典)")
    private String addrArea;

    @ApiModelProperty(value = "乡镇(字典)")
    private String addrTown;

    @ApiModelProperty(value = "街道(字典)")
    private String addrVillage;

    @ApiModelProperty(value = "常住地址详细地址")
    private String addrDesc;

    @ApiModelProperty(value = "创建人")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "签名id")
    private Long signId;

    @ApiModelProperty(value = "机构")
    private String agency;


}
